package com.mew.lobby.provide;


import com.mew.common.entity.sys.Bulletin;
import com.mew.common.rest.user.EnterInfoResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Component
@FeignClient(value = "mew-kernel-user")
public interface SysFeignService {

    @ResponseBody
    @RequestMapping("/feedback/{uid}/{msg}")
    public void feedback(@RequestParam("uid")long uid,@RequestParam("type")byte type,@RequestParam("msg") String msg);

    @ResponseBody
    @RequestMapping("/sys/bulletins/{uid}")
    List<Bulletin> bulletins(@RequestParam("uid")long uid);

    @GetMapping("/login/enter/{uid}")
    @ResponseBody
    EnterInfoResponse enter(@PathVariable("uid")long uid);
}
